package com.ruoyi.management.statistical.driversign.controller;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.management.basics.controller.BaseExtController;
import com.ruoyi.management.statistical.driversign.service.ITDriverSignService;
import com.ruoyi.management.statistical.driversign.vo.GetDriversVo;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * 驾驶员打卡信息Controller
 * 
 * @author ruoyi
 * @date 2021-12-01
 */
@RestController
@RequestMapping("/sign")
public class TDriverSignController extends BaseExtController {
    @Autowired
    private ITDriverSignService tDriverSignService;

    /**
     * 统计上线驾驶员数（当日）
     *
     */
    @ApiOperation(value = " 统计上线驾驶员数（当日）", notes = "统计上线驾驶员数（当日）")
    @GetMapping(value = "/get_drivers")
    public AjaxResult getDrivers() {
        GetDriversVo vo= tDriverSignService.getDrivers(getCompanyId());
        return AjaxResult.success(vo);
    }
}
